package com.zy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Apply implements Serializable {

    /**
     * 申请id
     * 申请类型
     * 申请用户id
     * 申请时间
     * 时长
     * 地点
     * 原因
     * 所属部门id
     * 申请状态
     * 申请开始时间
     * 申请结束时间
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String type;
    private Integer userId;
    private Date date;
    private Integer duration;
    private String place;
    private String reason;
    private Integer departmentId;
    private Integer applyState;
    private String applyStartTime;
    private String applyEndTime;
    private String title;


    public Apply(String type, Integer userId, Integer duration, String place, String reason, Integer departmentId, String applyStartTime, String applyEndTime, String title) {
        this.type = type;
        this.userId = userId;
        this.duration = duration;
        this.place = place;
        this.reason = reason;
        this.departmentId = departmentId;
        this.applyStartTime = applyStartTime;
        this.applyEndTime = applyEndTime;
        this.title = title;
    }


}
